<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="tags" tagdir="/WEB-INF/tags"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ taglib prefix="spring" uri="http://www.springframework.org/tags"
%><%@ taglib prefix="tags" tagdir="/WEB-INF/tags"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%>
<head>
	<link type="text/css" href="http://a.tbcdn.cn/apps/trademanager/1.0/order_detail.css?t=20110106.css" rel="stylesheet"/>

	<title><fmt:message key="shoppingOrder" /></title>
</head>
<body>
<style>
.order-hd {
	color: #404040;
	background: #E8F2FF;
}

</style>
<c:url var="homeUrl" value="/"/>
<div id="nav-crumbs1" class="crumbs">您的位置：<a href="${homeUrl}">首页</a><span>&gt;</span>
	<a href="${homeUrl}user/index">会员中心</a><span>&gt;</span>
	<a href="${homeUrl}domain/order">已买到的宝贝</a><span>&gt;</span>
	<a>订单详情</a>
</div>
<div class="grid-c" id="detail-panel">
	<div id="J_TabView" class="tabs-container">
		<ul class="tabs-nav">
			<li class="current"><a name="tab0">订单信息</a></li>
		</ul>
		<div class="tabs-panels">
			<div class="info-box order-info" style="display: block; ">
				<h2>订单信息</h2>
				<div class="bd">
					
					<table>
						<colgroup>
							<col width="260">
							<col width="110">
							<!-- 宝贝 -->
							<col class="col1">
							<!-- 交易状态 -->
							<col class="col2">
							<!-- 单价（元） -->
							<col class="col3">
							<!-- 数量 -->
							<col class="col4">
							<!-- 优惠 -->
							<col class="col5">
							<!-- 合计（元） -->
							<col class="col6">
							<!-- 运费（元） -->
						</colgroup>
							
						<!-- 订单信息 -->
						<tbody class="misc-info">
							<tr>
								<th colspan="8"><h4>订单信息</h4></th>
							</tr>
							<tr>
								<td>
									<span class="label">订单编号：</span> 
									<span class="order-num">${order.inode}</span>
								</td>
								<td colspan="3">
									<span class="label">支付宝交易号：</span> <span class="alilay-num">${order.inode}</span>
								</td>
								<td colspan="4">													
									<span class="label">发货时间：</span>
									<span class="consign-time">2011-01-15 13:15:33</span>
								</td>
							</tr>
							<tr>
								<td>
									<span class="label">成交时间：</span> 
									<span class="trade-time">${order.createDate}</span>
								</td>
								<td colspan="3">
									<span class="label">付款时间：</span>
									<span class="pay-time">2011-01-15 12:46:16</span>
								</td>
								<td colspan="4">
									<span class="label">确认时间：</span>
									<span class="confirm-time">2011-01-18 13:43:50</span>
								</td>
							</tr>
						</tbody>
						
						<!-- 订单信息 -->
						<tbody class="order">
							<tr class="sep-row">
								<td colspan="8"></td>
							</tr>
							<tr class="order-hd"> 
								<th class="item">宝贝</th>
								<th class="sku">宝贝属性</th>
								<th class="status">状态</th>
								<th class="price">单价(元)</th>
								<th class="num">数量</th>
								<th class="discount">优惠</th>
								<th class="order-price">商品总价(元)</th>
								<th class="post-fee">运费(元)</th>
							</tr> 
							<c:url var="itemUrl" value="/domain/order/item" />
							<c:forEach items="${orderItems}" var="item" varStatus="status">
							<tr class="order-item">
								<td class="item">
									<div class="pic-info">
										<div class="pic s50">
											<a hidefocus="true" href="${itemUrl}/${item.inode}" title="商品图片">
											<img alt="${item.title}" src="http://img03.taobaocdn.com/bao/uploaded/i3/T1k74TXhhvXXbWyBg3_050734.jpg_sum.jpg">
											</a>
										</div>
									</div>
									<div class="txt-info">
										<div class="desc">
										<span class="name"><a href="${itemUrl}/${item.inode}" title="${item.title}">
										${item.title}</a>
										</span>
										</div>
									</div>
								</td>
								<td class="sku">
									<div class="props">${item.sku}</div>                          
								</td>
								<td class="status">${order.status}</td>
								<td class="price">${item.listPrice}</td>
								<td class="num">${item.quantity}</td>
								<td class="discount">无优惠</td>
								<td class="order-price" rowspan="1">${item.price}</td>
								<td class="post-fee" rowspan="1">
									<span>${item.shipping}</span>
								</td>
							</tr>
							</c:forEach>
							<tr class="order-ft">
								<td colspan="8">
									<!--
									<div class="msg cif-tip">
										<p class="tips">卖家已为您的运费投保，最高赔付25元&nbsp;&nbsp;<a href="http://baoxian.taobao.com/thwy/detail.html?biz_trade_id=61583034914769&amp;biz_order_id=61583034914769" target="_blank">详情&gt;&gt;</a></p>
									</div>
									<div class="point-info">
										(可获返还商城积分42点)
										<a class="help-icon" title="点此查看商城积分用途" href="http://mall.taobao.com/go/chn/mall/cashpoints.php">点此查看详情</a>
									</div>
									-->
									<div class="get-money" colspan="6">
										<br>
										实付款：<strong>${order.totalPrice}</strong>元<br>
									</div>
								</td>
							</tr>
							
						</tbody>
					</table>


					<table class="simple-list logistics-list">
						<colgroup>
							<col class="label">
							<col class="info"><col>
						</colgroup>
						<tbody>
						<tr class="sep-row">
							<td colspan="3"></td>
						</tr>
						<tr>
							<th colspan="3"><h4>物流信息</h4></th>
						</tr>
						<tr>
						  <td class="label">收货地址：</td>
						  <td>${order.shippingFirstName}，${order.shippingMobile}，${order.shippingPhone}，${order.shippingState} ${order.shippingCity} ${order.shippingStreet}，${order.shippingZip}</td>
						  <td>${order.shippingBestTime}  ${order.shippingBuilding}</td>
						</tr>
						<tr>
							<td class="label">运送方式：</td>
							<td>${order.altShipping}</td>
							<td></td>
						</tr>
						<!--
						<tr>
							<td class="label">物流公司：</td>
							<td> 韵达快运 </td>
							<td></td>
						</tr>
						
						<tr>
							<td class="label">运单号：</td>
							<td>1200326510495  
								<a class="view-logistics-info" target="_blank" href="http://trade.taobao.com/trade/logistics_status.htm?logis_type=0&amp;biz_order_id=61583034914769&amp;biz_type=200">查看物流信息</a>
							</td>
							<td></td>
						</tr>
						-->
						<tr>
							<td class="label">买家留言：</td>
							<td><span id="J_ExistMessage">${order.comments}</span></td>
							<td></td>
						</tr>
						</tbody>
					</table>


				</div>
			</div>
		</div>
	</div>
</div>

</body>